# # result = 0
# # i = 0
# # while i < 101:
# #     i += 1
# #     if i % 2 == 1:
# #         continue
# #     result += i
# #
# # # print(result)
# # print("Hello World")
# # print('Hello' 'World')
# # print('H' + 'W')
# # print('Hello', 'World')
# # print('Hello', 'World', sep='@@@')
# # n = input('sssss: ')
# #客户输入
# #input（）   括号李是屏幕滚平的输出
# # # i = input('加油！刘德洋')
# # i = input('请输入用户名： ')
# # print('欢迎用户： ', i)
# # uname = input('username: ')
# # print('欢迎王shi者归来： %s %s' %  (uname, 20) )
# # py_str
# # 变量名使用名词phone
# # 函数名使用谓词：（动词加名词）
# # updata_phone
# # 驼峰形式，MyClass
# #bianliangfuzhi一个自由向左的运算过程，将=好右边表达计算出结果，赋值给左边的变量；
# # a = 10
# # a = a + 5
# # a += 5
# #判断相等要用 ==
# # 1.25
# # >>> 5//4
# # 1
# # # >>> 5 % 3
# # # # 2
# # # >>> 2 ** 3
# # # 8
# # # >>> 2 * 3 ** 2
# # # 18
# # # >>> divmod(5, 3)
# # # (1, 2)
# # # >>> a, b = divmod(5, 2)
# # # >>> a
# # # 2
# # # >>> b
# # # 1
# # # >>>
# # >>> 5/ 4
# # 1.25
# # >>> 5//4
# # 1
# # >>> 5 % 3
# # 2
# # >>> 2 ** 3
# # 8
# # >>> 2 * 3 ** 2
# # >>> 20 > 15 > 10
# # True
# # >>> 10 < 13 <18
# # True
# # >>> 20 > 15 and 15 > 12
# # True
# # >>> 20 > 13 or 12 > 15
# # >>> 10 > 2
# # >>> 10 > 2 or 5 > 6
# # True
# # >>> 10 > 11
# # False
# # >>> not (10 > 11)
# # True
# # int(input('abc'))+5
# # >>> int(n)+5
# # Traceback (most recent call last):
# #   File "<stdin>", line 1, in <module>
# # NameError: name 'n' is not defined
# # >>> n =6
# # >>> int(n)+5
# # 11
# #int(n) 转化为数字类型
# # #str(5)  转化给字符类型
# # False + 10
# # >>> False + 10
# # 10
# # >>> True + 10
# # 11
# # >>> True * 10
# # 10
# # # >>>
# # >>> 0b11
# # 3
# # >>> 0o11
# # 9
# # >>> 0x11
# # 17
# #
# '''hello
# ... world
# ... tom
# # ... wo'''
# # # 'hello\nworld\ntom\nwo'
# # # 'l\nd\ny\n'
# # >>> s1[0]
# # 'p'
# # >>> s1[5]
# # 'n'
# # >>> s1[-1]
# # 'n'
# # >>> s1[-6]
# # 'p'
# # #下标是从作往右 0 1 2 3 4 5
# # #下标是右往左   -6 -5 -4 -3 -2 -1
# #
# # 'ython'
# # >>> s1[2:]
# # 'thon'
# # >>> s1[:]
# # 'python'
# # >>> s1[::]
# # 'python'
# # # >>> s1[::2]
# # # 'pto'
# # >>> s1[1::2]
# # # 'yhn'
# # # >>> s1[1::-1]
# # 'yp'\'ython'
# # >>> s1[2:]
# # 'thon'
# # >>> s1[:]
# # 'python'
# # >>> s1[::]
# # 'python'
# # >>> s1[::2]
# # # 'pto'
# # >>> l1[0]
# # 2
# # >>> l1[-1]
# # [1, 4]
# # >>> l1[2:6]
# # ['wer', [1, 4]]
# # >>> 2 in l1
# # True
# #拼接和重复不改变，本身不会改变
# >>> l1.append(2)
# >>> l1.
# l1.append(   l1.count(    l1.insert(   l1.reverse(
# l1.clear(    l1.extend(   l1.pop(      l1.sort(
# l1.copy(     l1.index(    l1.remove(
# >>> l1.append(45)
# >>> l1
# [2, 3, 'wer', 200, 34, 2, 45]
# #元组是不可变的列表
# #()
# >>> t1[0]
# 10
# >>> t1[-1]
# 'www'
# >>> len(t1)
# 3
# >>> list(t1)
# [10, 15, 'www']
# >>> t1[0]
# 10
# >>> t1[-1]
# 'www'
# >>> t1[2:4]
# ('www',)
#
# #yuanzu是不可变的列表()
# xklnile
# #字典是无序的，采用key取出value
# #TOM是name的马？
# #元组是不可变的列表
# 标量是数字，字符串
# 容器：列表，元组，字典；
# l1 = ['', '', ]
# l1.append(34)
# biaoliang ：字符串和数字
# 容器：列表，元组，
#按更新的模型分类：
#不变的
#可变：列表，字典
# #不可变：字符串，元组，数字
#
# 存储方式
# 常量：数字和字符串
# 容器：列表，元组，字典；
#
# 更新模式：
# 可变：列表，字典
# 不可变：元组，字符串，数字
# 字典无序排列
# if  条件：
# #     如果条件为真执行的语句快
# if 3 > 0:
#     print('yes')
#     print('ok')
# #
# if -0.0 :
#     print('不会输出')
# if 100:
#     print('ky')
# if ' ' :
#     print('为真')
# if "" :
#     print('jia')
# if [] :
# #     print('jia')
# if No
# >>> len(t1)
# 3
# >>> list(t1)
# [10, 15, 'www']
# >>> list[t1].append = [34]
# >>> 他
# ne :
#     print("weizhen")
# if not None:
# #     print('为真')
# a = 10
# b = 20
# n = a if a < b  else b
# print(n)
#
# import  getpass
# uname = input('请输入用户名： ')
# upass = getpass.getpass('请输入密码： ')
# if uname == 'bob' and upass == '123456':
#     print('Login')
# else:
#     print('logout')

# # if __name__ == '__main__':
# #     import getpass
# #    n = getpass.getpass
#
# num = int(input('请输入分数： '))
# if num > 90:
#     print('优秀')
# elif num > 80:
#     print('良')
# elif num > 70:
#     print('可')
# elif num > 60:
#     print('及')
# else:
#     print('\033[31;44;1m你该努力了\033[0m')
# #
# # 59
#     print('\033[31;1mWWWWW\033[0m')
# '\033[31;41;1m  \033[0m'
import random
option = ['石头', '剪刀', '布']
player = input('请出石头、剪刀、布： ')
com    = random.choice(option)
wins   = [['石头', '剪刀'], ['剪刀', '布'], ['布', '石头']]
print('你出的：%s, 计算机出的：%s ' % (player, com))
if player == com :
    print('平手')
elif [player, com] in wins:
    print('\033[31;42;1mYou Win!!!\033[0m')
else:
    print('\033[31;42;1mYou Close\033[0m')



























































